package com.ruoyi.project.drug.service.impl;

import com.ruoyi.project.drug.domain.DrugInfo;
import com.ruoyi.project.drug.mapper.DrugInfoMapper;
import com.ruoyi.project.drug.service.IDrugInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrugInfoServiceImpl implements IDrugInfoService {
    @Autowired
    private DrugInfoMapper drugInfoMapper;
    @Override
    public List<DrugInfo> selectDrugInfoList(DrugInfo drugInfo) {
        return drugInfoMapper.selectDrugInfoList(drugInfo);
    }

    @Override
    public int insertDrugInfo(DrugInfo drugInfo) {
        return drugInfoMapper.insertDrugInfo(drugInfo);
    }

    @Override
    public int deleteDrugInfo(Long[] ids) {
        return drugInfoMapper.deleteDrugInfo(ids);
    }

    @Override
    public DrugInfo selectDrugInfoById(Long drugId) {
        return drugInfoMapper.selectDrugInfoById(drugId);
    }

    @Override
    public int updateDrugInfo(DrugInfo drugInfo) {
        return drugInfoMapper.updateDrugInfo(drugInfo);
    }
}
